package com.easygem.front.mapper;

import com.easygem.common.model.front.Blacklist;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;


/**
 * @author 肖智
 * @version 1.0
 * @Description TODO
 * @date 2025/1/2
 */
public interface BlackListMapper extends Mapper<Blacklist>, com.easygem.business.mapper.Mapper<Blacklist> {
    Integer addBlackList(Blacklist blacklist);
    /**
     *根据部门编号，获取该用户下的黑名单
     * @param blacklist 集合列表
     * @return 黑名单集合
     */
    List<Blacklist> getBlackListByDepId_List(Blacklist blacklist);


    Long getBlackListByDepId_List_COUNT(Blacklist blacklist);
    /**
     * 根据id集合多个删除
     * @param blacklistIds id集合
     * @return
     */
    int delByBlacklistIds(@Param("blacklistIds") String[] blacklistIds);

    /**
     * 得到部门编号下的所有黑名单id
     * @param blacklist 集合列表
     * @return
     */
    String[] getBlacklistIdStrings(Blacklist blacklist);

    int importBlacklist(@Param("blacklists") List<Blacklist> blacklists);
}
